<%--
  Created by IntelliJ IDEA.
  User: 凡人
  Date: 2021/11/13
  Time: 9:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>详情</title>
    <link href="${pageContext.request.contextPath}/static/css/index3.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/css/bootstrap.css" rel="stylesheet">
</head>
<body style="margin: 0 auto">
    <table>
        <tr>
            <td colspan="100">
                用户名:${user.userName}&emsp;性别:${user.userGender.text}&emsp;&emsp;订单号:${order.orderId}&emsp;商品种类:${order.goodsType}
            </td>
        </tr>
        <tr>
            <td>商品名称</td>
            <td>商品价格</td>
            <td>商品图片</td>
            <td>购买数量</td>
            <td>生产日期</td>
        </tr>
        <c:forEach var="i" items="${order.goods}">
            <tr>
                <td>${i.goodsName}</td>
                <td>${i.goodsPrice}</td>
                <td>
                    <img src="${i.goodsPicture}" height="50px" width="50px">
                </td>
                <td>${i.goodsNum}</td>
                <td>
                    <fmt:formatDate value="${i.goodsDate}" pattern="yyyy-MM-dd"></fmt:formatDate>
                </td>
            </tr>
        </c:forEach>
        <tr>
            <td colspan="100">
                <a href="./list">返回</a>
            </td>
        </tr>
    </table>
</body>
<script>
</script>
</html>
